package com.aracky.flowable.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * @Author zengzhiping
 * @BelongsPackage com.aracky.flowable.model.vo
 * @CreateTime 2022-08-19
 * @Description
 */
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class HistoricActivityInstanceVO {

    @ApiModelProperty("id")
    private String id;

    @ApiModelProperty("任务名称")
    private String activityName;

    @ApiModelProperty("当期执行任务id")
    private String activityId;

    @ApiModelProperty("开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;

    @ApiModelProperty("结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;

    @ApiModelProperty("当前修改")
    private Integer revision;

    @ApiModelProperty("下一次修改")
    private Integer revisionNext;

    @ApiModelProperty("流程实例id")
    private String processInstanceId;

    @ApiModelProperty("执行人id")
    private String assignee;

    @ApiModelProperty("执行Id")
    private String  executionId;

    @ApiModelProperty("是否被删除")
    private Boolean deleted;

    @ApiModelProperty("总任务id")
    private String taskId;

    @ApiModelProperty("任务类型")
    private String activityType;
}
